/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PainelDeTitulos.java
 *
 * Created on 13/08/2012, 23:37:08
 */
package gui;

/**
 *
 * @author Lindemberg
 */
public class PainelDeTitulos extends javax.swing.JPanel {

    /** Creates new form PainelDeTitulos */
    public PainelDeTitulos(String coluna) {
        initComponents();
        jlColuna.setText(coluna);
    }

    PainelDeTitulos(String coluna, String titulo) {
        initComponents();
        jlColuna.setText(coluna);
        jtTitulo.setText(titulo);
    }
    
    public String getTitulo(){
        return jtTitulo.getText();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jlColuna = new javax.swing.JLabel();
        jtTitulo = new javax.swing.JTextField();

        jlColuna.setText("Coluna 1:");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jlColuna)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jtTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, 376, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jlColuna)
                    .addComponent(jtTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jlColuna;
    private javax.swing.JTextField jtTitulo;
    // End of variables declaration//GEN-END:variables
}
